-- GENERATED SPELL FOR [Dimensius the All-Devouring] --


function spell0_19554(pUnit, Event) --@Shadow Spiral,n/a--
pUnit:FullCastSpellOnTarget(37500,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19554', 3000, 1)
end

function spell1_19554(pUnit, Event) --@Shadow Vault,n/a--
pUnit:FullCastSpellOnTarget(37412,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19554', 548, 1)
end

function Sorts_19554(pUnit, Event)
local choix_sorts_19554 = math.random(0, 1)
if choix_sorts_19554 == 0 then
pUnit:RegisterEvent('spell0_19554', 1, 1)
end
if choix_sorts_19554 == 1 then
pUnit:RegisterEvent('spell1_19554', 1, 1)
end
end

function mob19554_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19554', math.random(1500, 3000), 1)
end

function mob19554_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19554_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19554_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19554, 1, 'mob19554_Action')
RegisterUnitEvent(19554, 2, 'mob19554_Leave')
RegisterUnitEvent(19554, 3, 'mob19554_Kill')
RegisterUnitEvent(19554, 4, 'mob19554_Die')
